package com.itheima.dao.system;

import com.itheima.domain.system.Module;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @program: mm
 * @description:
 * @author: zhanghz001
 * @create: 2020-10-16 15:52
 **/
public interface ModuleDao {
    int save(Module module);

    int delete(Module module);

    int update(Module module);

    Module findById(String id);

    List<Module> findAll();

    List<Map> findAuthorDataByRoleId(String roleId);

    List<Module> findModuleByUserId(@Param("id") String id);
}